package com.unknown.wiki.details;

import android.arch.lifecycle.LiveData;

import com.unknown.common.function.SEFunction;
import com.unknown.wiki.model.Wiki;

public interface WikiDetailsContract {

    interface IWikiDetailsViewModel {
        LiveData<Wiki> getWiki(String wikiId);
    }

    interface IWikiDetailsRepository {
        void getWiki(String wikiId, SEFunction<Wiki> onSuccessListener, SEFunction<Throwable> onFailureListener);
    }
}
